package com.heima.sjms.策略模式;

interface Strategy {
    void execute();
}


public class ConcreteStrategyA implements Strategy {
    @Override
    public void execute() {
        System.out.println("执行策略A：攒金币");
    }
}

class ConcreteStrategyB implements Strategy {
    @Override
    public void execute() {
        System.out.println("执行策略B：攒钻石");
    }
}

class ConcreteStrategyC implements Strategy {
    @Override
    public void execute() {
        System.out.println("执行策略C：攒积分");
    }
}